//
//  WebViewController.swift
//  YueJian
//
//  Created by mac on 2017/11/12.
//  Copyright © 2017年 MapleStory. All rights reserved.
//

import UIKit
import WebKit

class WebViewController: UIViewController {
    
    var dic: [String:AnyObject]?

    override func viewDidLoad() {
        super.viewDidLoad()

        let webview = WKWebView(frame: CGRect(x: 0, y: 0, width: Screen_Width, height: Screen_Height))
        let urlstr = dic?["link"] as? String
        self.title = urlstr
        let request = URLRequest(url: URL(string: "https://www.baidu.com")!)
        webview.load(request)
        self.view.addSubview(webview)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
